//========================================================================
/**
 * Author   : cuisw <shaovie@gmail.com>
 * Date     : 2008-08-18 23:26
 */
//========================================================================

#ifndef _LOGTOSTDOUT_H_
#define _LOGTOSTDOUT_H_
#include "Pre.h"

#include "LogOutput.h"

/**
 * @class LogToStdout
 *
 * @brief Implements an LogOutput that logs to the stdout.
 */
class LogToStdout : public LogOutput
{
public:
    // 
    LogToStdout ();

    virtual ~LogToStdout ();

    // Initialize the event logging facility.
    //
    // $param logger_arg No used.
    virtual int open (const char *logger_arg, LogManager::Strategy *);

    // No-op.
    virtual int close ();

    virtual void reset (void);

    // Update log strategy
    virtual void update_strategy (const char *, LogManager::Strategy *ls);

    // Print a log message to stdout
    virtual int log (const char *log_msg, int len);
private:

};

#include "Post.h"
#endif

